package com.smart.community.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 用户上传文件DTO
 * 
 * @author Wu.Liang
 * @since 2025-01-30
 * @version 1.0.0
 */
@Data
@Schema(description = "用户上传文件DTO")
public class UserUploadFileDTO {

    @Schema(description = "上传类型：AVATAR-头像，DOCUMENT-文档，IMAGE-图片，OTHER-其他")
    @NotNull(message = "上传类型不能为空")
    @Size(max = 50, message = "上传类型长度不能超过50个字符")
    private String uploadType;

    @Schema(description = "上传来源：WEB-网页端，APP-移动端")
    @Size(max = 50, message = "上传来源长度不能超过50个字符")
    private String uploadSource;

    @Schema(description = "文件描述")
    @Size(max = 500, message = "文件描述长度不能超过500个字符")
    private String description;
} 